Next | Prev | Up | Top | Contents | Index

Opening Input Devices

An input device is opened at one of two times: when the X server starts up, and when an X client requests an open.


Starting Up the Server

When Xsgi starts up, it opens each device name in /dev/input and for each one it:


Opening from a Client

An X application can use the XListInputDevices() function to get a list of available input devices. Then it can call XOpenDevice() to open a selected device, so that input events from that device will be processed by the X server (see the XListInputDevices(3X) and XOpenDevice(3X) reference pages).

When XOpenDevice() is called for an input device that is not already open, it repeats the process done at startup time:


Next | Prev | Up | Top | Contents | Index